package com.csj.DesignPattern.obverser;

public class Client {
    public static void main(String[] args) {
        SubscriptionSubject subject = new SubscriptionSubject();

        subject.attach(new WeiXinUser("小明"));
        subject.attach(new WeiXinUser("小红"));
        subject.attach(new WeiXinUser("小张"));

        subject.notify("这是公众号消息");
    }
}
